//
//  Volkswagen.m
//  Chapter3
//
//  Created by 郭家正 on 2019/1/10.
//  Copyright © 2019 TM. All rights reserved.
//

#import "Volkswagen.h"

@implementation Volkswagen

-(id)init {
    self = [super init];
    if (self) {
        self.name = @"一台大众车";
    }
    return self;
}

-(id)initWithName:(NSString *)name
            color:(NSString *)color
           engine:(NSString *)engine
            price:(CGFloat)price {
    self = [super init];
    if (self) {
        self.name = name;
        self.color = color;
        self.enginePower = engine;
        self.price = price;
    }
    return self;
}

-(void)drive {
    NSLog(@"%@行驶中。。。",self.name);
}
-(void)stop {
    NSLog(@"%@停车中。。。",self.name);
}
-(void)back {
    NSLog(@"%@倒车中。。。",self.name);
}

@end
